<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
		
			const p1 = new Promise((resolve,reject)=>{
				console.log('zero')
				setTimeout(()=>{
					console.log('one')
					resolve('success')
				},0)
			});
			p1.then((res)=>{
				console.log(res)
				console.log("tow")
			})
			p1.then((res)=>{
				console.log(res);
				console.log('three')
			})
			console.log("main")
		</script>
	</body>
</html>
